package com.itheima.demo9_多态的应用场景.返回值多态_2;

public class Animal {
    public void eat() {
        System.out.println("吃东西..");
    }
}

class Dog extends Animal {
    public void eat() {
        System.out.println("狗吃骨头...");
    }
}

class Cat extends Animal {
    public void eat() {
        System.out.println("猫吃鱼...");
    }
}
